package com.iuweb.commen.domain;

import java.util.List;


/**
 * 系统资源实体
 * @author xiuhai.liao
 */
public class Resource {

    /**
     *serialVersionUID
     */
    private static final long serialVersionUID = -3778760457525890484L;

    /**
     *code 系统资源代码
     */
    private String code;

    /**
     *name 资源中文名称
     */
    private String name;
    
    /**
     *name 资源英文名称
     */
    private String englishName;

    /**
     *accessUrl 访问URL,如果有多个，可以以","分隔开
     */
    private String accessUrl;

    /**
     *imgUrl 图片URL
     */
    private String imgUrl;

    /**
     *sort 系统资源排序
     */
    private double sort;

    /**
     *description 描述信息
     */
    private String description;

    /**
     *pid 父级资源id
     */
    private String pid;

    /**
     *pname 父级资源名称
     */
    private String pname;
    
    /**
     *isAdminVisibility 是否管理员可见(1:可见 0:不可见)
     */
    private String isAdminVisibility;

    /**
     *IsFunction 是否为功能(用于合并原有Function表中的数据)
     */
    private String isFunction;

    /**
     *IsVisible 是否可见
     */
    private String isVisible;

    /**
     *children 子资源
     */
    private List<Resource> children;
    
    /**
     *havePermission 拥有权限
     */
    private String havePermission;
    
    /**
     * isMobile 是否移动端资源(1:是,0:不是)
     */
    private String isMobile;
    
    /**
	 * 唯一标识
	 */
	private String uniqueCode;
	
	/**
	 * 图标样式
	 */
	private String iconClass;

    public String getUniqueCode() {
		return uniqueCode;
	}

	public void setUniqueCode(String uniqueCode) {
		this.uniqueCode = uniqueCode;
	}

	public String getIconClass() {
		return iconClass;
	}

	public void setIconClass(String iconClass) {
		this.iconClass = iconClass;
	}

	/**
     * @return the havePermission
     */
    public String getHavePermission() {
        return havePermission;
    }

    /**
     * @param havePermission
     *            the havePermission to set
     */
    public void setHavePermission(String havePermission) {
        this.havePermission = havePermission;
    }
    
    /**
     * @return the isMobile
     */
    public String getIsMobile() {
        return isMobile;
    }

    /**
     * @param isMobile
     *            the isMobile to set
     */
    public void setIsMobile(String isMobile) {
        this.isMobile = isMobile;
    }
    
    /**
     * @return the code
     */
    public String getCode() {
        return code;
    }

    /**
     * @param code
     *            the code to set
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     *            the name to set
     */
    public void setName(String name) {
        this.name = name;
    }
    
    /**
     * @return the englishName
     */
    public String getEnglishName() {
        return englishName;
    }

    /**
     * @param englishName
     *            the englishName to set
     */
    public void setEnglishName(String englishName) {
        this.englishName = englishName;
    }

    /**
     * @return the accessUrl
     */
    public String getAccessUrl() {
        return accessUrl;
    }

    /**
     * @param accessUrl
     *            the accessUrl to set
     */
    public void setAccessUrl(String accessUrl) {
        this.accessUrl = accessUrl;
    }

    /**
     * @return the imgUrl
     */
    public String getImgUrl() {
        return imgUrl;
    }

    /**
     * @param imgUrl
     *            the imgUrl to set
     */
    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    /**
     * @return the sort
     */
    public double getSort() {
        return sort;
    }

    /**
     * @param sort
     *            the sort to set
     */
    public void setSort(double sort) {
        this.sort = sort;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description
     *            the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return the pid
     */
    public String getPid() {
        return pid;
    }

    /**
     * @param pid
     *            the pid to set
     */
    public void setPid(String pid) {
        this.pid = pid;
    }

    /**
     * @return the pname
     */
    public String getPname() {
        return pname;
    }

    /**
     * @param pname
     *            the pname to set
     */
    public void setPname(String pname) {
        this.pname = pname;
    }

    /**
     * @return the isAdminVisibility
     */
    public String getIsAdminVisibility() {
        return isAdminVisibility;
    }

    /**
     * @param isAdminVisibility
     *            the isAdminVisibility to set
     */
    public void setIsAdminVisibility(String isAdminVisibility) {
        this.isAdminVisibility = isAdminVisibility;
    }

    /**
     * @return the isFunction
     */
    public String getIsFunction() {
        return isFunction;
    }

    /**
     * @param isFunction
     *            the isFunction to set
     */
    public void setIsFunction(String isFunction) {
        this.isFunction = isFunction;
    }

    /**
     * @return the isVisible
     */
    public String getIsVisible() {
        return isVisible;
    }

    /**
     * @param isVisible
     *            the isVisible to set
     */
    public void setIsVisible(String isVisible) {
        this.isVisible = isVisible;
    }

    /**
     * @return the children
     */
    public List<Resource> getChildren() {
        return children;
    }

    /**
     * @param children
     *            the children to set
     */
    public void setChildren(List<Resource> children) {
        this.children = children;
    }

}
